package com.zsc.newbuds.entity;

import java.io.Serializable;
import java.util.Comparator;

/**
 * 回收区域
 * @author D
 */
public class RecyclingArea implements Serializable, Comparable<RecyclingArea> {
    private Integer areaId;
    private String province;
    private String city;
    private String neighbourhood;
    private String addTime;
    private int recoveryTimes;
    private String assignPeople;
    private String state;


    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getNeighbourhood() {
        return neighbourhood;
    }

    public void setNeighbourhood(String neighbourhood) {
        this.neighbourhood = neighbourhood;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }


    public int getRecoveryTimes() {
        return recoveryTimes;
    }

    public void setRecoveryTimes(int recoveryTimes) {
        this.recoveryTimes = recoveryTimes;
    }

    public String getAssignPeople() {
        return assignPeople;
    }

    public void setAssignPeople(String assignPeople) {
        this.assignPeople = assignPeople;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "RecyclingArea{" +
                "areaId=" + areaId +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", neighbourhood='" + neighbourhood + '\'' +
                ", addTime='" + addTime + '\'' +
                ", recoveryTimes=" + recoveryTimes +
                ", assignPeople='" + assignPeople + '\'' +
                ", state='" + state + '\'' +
                '}';
    }

    @Override
    public int compareTo(RecyclingArea o) {
        return this.areaId-o.areaId;
    }
}
